import request from '@/utils/request'

export function getContinueEducation(params) {
    return request.post('/cem/get/personal/award', params);
}


export function deleteContinueEducation(id) {
    return request.delete(`/cem/deleteById/${id}`);
}


/**
 * 根据id来查询信息
 */
export function getContinueEducationById(id) {
    return request.get(`/cem/get/cem/ById/${id}`);
}


/**
 * 更新继续教育材料
 */
export function updateContinueEducationMaterial(personalAwardData) {
    return request.put('/cem/update', personalAwardData);
}


export function saveContinueEducationMaterial(personalAwardData) {
    return request.post('/cem/save', personalAwardData);
}


/**
 * excel批量导出
 */
export function exportContinueEducationMaterial(params) {
    return request.post('/cem/export', params, {
        responseType: 'blob'
    });
}

//根据多个id批量查询数据
export function getContinueEducationMaterialByIds(ids) {
    return request.post('/cem/getByIds', ids);
}
